<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录跳转</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            background-color: #F0F0F0;
            font-family: "arial", "sans-serif", "微软雅黑", "宋体", "Microsoft YaHei";
        }

        .wrap {
            width: 100%;
            padding-top: 60px;
            margin: 0 auto;
        }

        .input {
            text-align: center;
            width: 80%;
            height: 40px;
            margin: 15px auto;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div class="input" id="message"></div>
</div>
</body>
<script>
    if (!!location.search) {
        var queryParams = {};
        var queryParameters = location.search.substring(1).split("&");
        for (var i = 0; i < queryParameters.length; i++) {
            var pos = queryParameters[i].indexOf("=");
            if (pos == -1)
                queryParams[queryParameters[i]] = "";
            else
                queryParams[queryParameters[i].substring(0, pos)] = queryParameters[i].substring(pos + 1);
        }
        parent.window.postMessage(queryParams, "*");
    } else {
        var msg = document.getElementById("message");
        msg.innerHTML = "参数无效";
    }
</script>
</html>